[INFO] cloning repository https://github.com/soniceroy/RustBlockchain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/soniceroy/RustBlockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoniceroy%2FRustBlockchain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoniceroy%2FRustBlockchain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c33433ce9ef133f14b9a808520b6b0bc275bbc9b
[INFO] checking soniceroy/RustBlockchain against master#39323a5877ee6b85e75c652c2518a97a1433a2dc for pr-102593
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoniceroy%2FRustBlockchain" "/workspace/builds/worker-6/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/soniceroy/RustBlockchain on toolchain 39323a5877ee6b85e75c652c2518a97a1433a2dc
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/soniceroy/RustBlockchain
[INFO] finished tweaking git repo https://github.com/soniceroy/RustBlockchain
[INFO] tweaked toml for git repo https://github.com/soniceroy/RustBlockchain written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] crate git repo https://github.com/soniceroy/RustBlockchain already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9f1828163a3d6653e95da412abf9bd63a49625e54f2808aecc6c09efe505b7fb
[INFO] running `Command { std: "docker" "start" "-a" "9f1828163a3d6653e95da412abf9bd63a49625e54f2808aecc6c09efe505b7fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9f1828163a3d6653e95da412abf9bd63a49625e54f2808aecc6c09efe505b7fb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f1828163a3d6653e95da412abf9bd63a49625e54f2808aecc6c09efe505b7fb", kill_on_drop: false }`
[INFO] [stdout] 9f1828163a3d6653e95da412abf9bd63a49625e54f2808aecc6c09efe505b7fb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+39323a5877ee6b85e75c652c2518a97a1433a2dc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a536949ad0cad2da0041cebd96babc5c349d04a0df2310936fd68f9ad9751430
[INFO] running `Command { std: "docker" "start" "-a" "a536949ad0cad2da0041cebd96babc5c349d04a0df2310936fd68f9ad9751430", kill_on_drop: false }`
[INFO] [stderr]     Checking blockchain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn hash(block: Blockchain) {
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block`
[INFO] [stdout]   --> src/main.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 | fn hash(block: Blockchain) {
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]   --> src/main.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 50 | impl <'a>Blockchain<'a> {
[INFO] [stdout]    |       -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn new_block(&mut self) {
[INFO] [stdout]    |                  - let's call the lifetime of this reference `'1`
[INFO] [stdout] 58 |
[INFO] [stdout] 59 |         let new_block = Block::new(0, self.current_transactions, 100, 0);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/main.rs:80:4
[INFO] [stdout]    |
[INFO] [stdout] 75 |     fn last_block(&mut self) -> &Block {
[INFO] [stdout]    |                   - let's call the lifetime of this reference `'1`
[INFO] [stdout] 76 |         if let Some(last) = self.chain.first() {
[INFO] [stdout]    |                             ------------------ immutable borrow occurs here
[INFO] [stdout] 77 |             &last
[INFO] [stdout]    |             ----- returning this value requires that `self.chain` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 80 |             self.new_block();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]   --> src/main.rs:59:19
[INFO] [stdout]    |
[INFO] [stdout] 50 | impl <'a>Blockchain<'a> {
[INFO] [stdout]    |       -- lifetime `'a` defined here
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn new_block(&mut self) {
[INFO] [stdout]    |                  - let's call the lifetime of this reference `'1`
[INFO] [stdout] 58 |
[INFO] [stdout] 59 |         let new_block = Block::new(0, self.current_transactions, 100, 0);
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'a`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/main.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 75 |     fn last_block(&mut self) -> &Block {
[INFO] [stdout]    |                   - let's call the lifetime of this reference `'1`
[INFO] [stdout] 76 |         if let Some(last) = self.chain.first() {
[INFO] [stdout]    |                             ------------------ immutable borrow occurs here
[INFO] [stdout] 77 |             &last
[INFO] [stdout]    |             ----- returning this value requires that `self.chain` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 81 |             self.last_block()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/main.rs:80:4
[INFO] [stdout]    |
[INFO] [stdout] 75 |     fn last_block(&mut self) -> &Block {
[INFO] [stdout]    |                   - let's call the lifetime of this reference `'1`
[INFO] [stdout] 76 |         if let Some(last) = self.chain.first() {
[INFO] [stdout]    |                             ------------------ immutable borrow occurs here
[INFO] [stdout] 77 |             &last
[INFO] [stdout]    |             ----- returning this value requires that `self.chain` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 80 |             self.new_block();
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/main.rs:81:4
[INFO] [stdout]    |
[INFO] [stdout] 75 |     fn last_block(&mut self) -> &Block {
[INFO] [stdout]    |                   - let's call the lifetime of this reference `'1`
[INFO] [stdout] 76 |         if let Some(last) = self.chain.first() {
[INFO] [stdout]    |                             ------------------ immutable borrow occurs here
[INFO] [stdout] 77 |             &last
[INFO] [stdout]    |             ----- returning this value requires that `self.chain` is borrowed for `'1`
[INFO] [stdout] ...
[INFO] [stdout] 81 |             self.last_block()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `blockchain` due to 4 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `blockchain` due to 4 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "a536949ad0cad2da0041cebd96babc5c349d04a0df2310936fd68f9ad9751430", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a536949ad0cad2da0041cebd96babc5c349d04a0df2310936fd68f9ad9751430", kill_on_drop: false }`
[INFO] [stdout] a536949ad0cad2da0041cebd96babc5c349d04a0df2310936fd68f9ad9751430
